Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 21, 2025

The _networkCredential field in PublishHelper was never assigned due to a parameter shadowing bug. The field was declared at class level but the PushResource method parameter with the same name shadowed it, causing assignment to modify the parameter instead of the field. Private helper methods then accessed the always-null field instead of the intended credential value.

Changes

  • Removed unused _networkCredential class field
  • Introduced local variable networkCredential in PushResource to avoid shadowing
  • Updated method signatures to accept NetworkCredential parameter:
    • PushNupkg
    • InjectCredentialsToSettings
    • CheckDependenciesExist

Before

private NetworkCredential _networkCredential;  // Never assigned

internal void PushResource(..., NetworkCredential _networkCredential) {
    _networkCredential = repository.SetNetworkCredentials(_networkCredential, ...);  // Assigns to parameter, not field
    if (!PushNupkg(...)) { }  // Helper uses null field
}

private bool PushNupkg(...) {
    if (Credential != null || _networkCredential != null) { }  // Always null
}

After

internal void PushResource(..., NetworkCredential _networkCredential) {
    var networkCredential = repository.SetNetworkCredentials(_networkCredential, ...);
    if (!PushNupkg(..., networkCredential, ...)) { }
}

private bool PushNupkg(..., NetworkCredential networkCredential, ...) {
    if (Credential != null || networkCredential != null) { }
}

Resolves compiler warning CS0649.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • 0t3vsblobprodcus362.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet /usr/bin/dotnet publish --configuration Debug --framework net472 --output bin/Debug/net472/publish (dns block)
  • 11vvsblobprodcus336.vsblob.vsassets.io
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/C2A68810F0ABB7723234514C93509B8E/missingpackages_workingdir --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/77C2B7EFA55E8BDA0B153C2537FBB3C8/missingpackages_workingdir --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)
  • 1javsblobprodcus364.vsblob.vsassets.io
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/77C2B7EFA55E8BDA0B153C2537FBB3C8/missingpackages_workingdir --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)
  • 1k9vsblobprodcus379.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet /usr/bin/dotnet publish --configuration Debug --framework net472 --output bin/Debug/net472/publish (dns block)
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/A5E8D0CA472852830AF16B02D1DD7226/missingpackages_workingdir --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)
  • 1s1vsblobprodcus386.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet /usr/bin/dotnet publish --configuration Debug --framework net472 --output bin/Debug/net472/publish (dns block)
  • 4myvsblobprodcus32.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet /usr/bin/dotnet publish --configuration Debug --framework net472 --output bin/Debug/net472/publish (dns block)
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/PSResourceGet/src/code/Microsoft.PowerShell.PSResourceGet.csproj --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot (dns block)
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/940B32AFA3A9BBA00112E7C1E2D1C63E/missingpackages_workingdir --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)
  • 4vyvsblobprodcus361.vsblob.vsassets.io
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/C2A3D0041961258761441CD10FAD9FB7/missingpackages_workingdir --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)
  • 4zjvsblobprodcus390.vsblob.vsassets.io
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/PSResourceGet/test/perf/benchmarks/benchmarks.csproj --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot (dns block)
  • 51yvsblobprodcus36.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet /usr/bin/dotnet publish --configuration Debug --framework net472 --output bin/Debug/net472/publish (dns block)
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/PSResourceGet/src/code/Microsoft.PowerShell.PSResourceGet.csproj --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot (dns block)
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/A5E8D0CA472852830AF16B02D1DD7226/missingpackages_workingdir --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)
  • 5rqvsblobprodcus385.vsblob.vsassets.io
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/A5E8D0CA472852830AF16B02D1DD7226/missingpackages_workingdir --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)
  • 7devsblobprodcus323.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet /usr/bin/dotnet publish --configuration Debug --framework net472 --output bin/Debug/net472/publish (dns block)
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/PSResourceGet/src/code/Microsoft.PowerShell.PSResourceGet.csproj --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot (dns block)
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/PSResourceGet/test/perf/benchmarks/benchmarks.csproj --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot (dns block)
  • 7k6vsblobprodcus337.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet /usr/bin/dotnet publish --configuration Debug --framework net472 --output bin/Debug/net472/publish (dns block)
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/PSResourceGet/src/code/Microsoft.PowerShell.PSResourceGet.csproj --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot (dns block)
  • 7tjvsblobprodcus341.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet /usr/bin/dotnet publish --configuration Debug --framework net472 --output bin/Debug/net472/publish (dns block)
  • 80zvsblobprodcus35.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet /usr/bin/dotnet publish --configuration Debug --framework net472 --output bin/Debug/net472/publish (dns block)
  • bcnvsblobprodcus378.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet /usr/bin/dotnet publish --configuration Debug --framework net472 --output bin/Debug/net472/publish (dns block)
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/PSResourceGet/src/code/Microsoft.PowerShell.PSResourceGet.csproj --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot (dns block)
  • c50vsblobprodcus330.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet /usr/bin/dotnet publish --configuration Debug --framework net472 --output bin/Debug/net472/publish (dns block)
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/PSResourceGet/src/code/Microsoft.PowerShell.PSResourceGet.csproj --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot (dns block)
  • c78vsblobprodcus322.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet /usr/bin/dotnet publish --configuration Debug --framework net472 --output bin/Debug/net472/publish (dns block)
  • dlbvsblobprodcus316.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet /usr/bin/dotnet publish --configuration Debug --framework net472 --output bin/Debug/net472/publish (dns block)
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/PSResourceGet/src/code/Microsoft.PowerShell.PSResourceGet.csproj --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot (dns block)
  • gbsvsblobprodcus365.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet /usr/bin/dotnet publish --configuration Debug --framework net472 --output bin/Debug/net472/publish (dns block)
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/PSResourceGet/src/code/Microsoft.PowerShell.PSResourceGet.csproj --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot (dns block)
  • jd4vsblobprodcus366.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet /usr/bin/dotnet publish --configuration Debug --framework net472 --output bin/Debug/net472/publish (dns block)
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/PSResourceGet/src/code/Microsoft.PowerShell.PSResourceGet.csproj --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot (dns block)
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/77C2B7EFA55E8BDA0B153C2537FBB3C8/missingpackages_workingdir --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)
  • josvsblobprodcus372.vsblob.vsassets.io
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/A5E8D0CA472852830AF16B02D1DD7226/missingpackages_workingdir --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/940B32AFA3A9BBA00112E7C1E2D1C63E/missingpackages_workingdir --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)
  • kh4vsblobprodcus325.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet /usr/bin/dotnet publish --configuration Debug --framework net472 --output bin/Debug/net472/publish (dns block)
  • kmuvsblobprodcus389.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet /usr/bin/dotnet publish --configuration Debug --framework net472 --output bin/Debug/net472/publish (dns block)
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/PSResourceGet/src/code/Microsoft.PowerShell.PSResourceGet.csproj --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot (dns block)
  • l49vsblobprodcus358.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet /usr/bin/dotnet publish --configuration Debug --framework net472 --output bin/Debug/net472/publish (dns block)
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/940B32AFA3A9BBA00112E7C1E2D1C63E/missingpackages_workingdir --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)
  • ljcvsblobprodcus317.vsblob.vsassets.io
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/A5E8D0CA472852830AF16B02D1DD7226/missingpackages_workingdir --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)
  • m6xvsblobprodcus342.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet /usr/bin/dotnet publish --configuration Debug --framework net472 --output bin/Debug/net472/publish (dns block)
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/PSResourceGet/src/code/Microsoft.PowerShell.PSResourceGet.csproj --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot (dns block)
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/940B32AFA3A9BBA00112E7C1E2D1C63E/missingpackages_workingdir --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)
  • ofvvsblobprodcus315.vsblob.vsassets.io
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/PSResourceGet/test/perf/benchmarks/benchmarks.csproj --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot (dns block)
  • s4uvsblobprodcus326.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet /usr/bin/dotnet publish --configuration Debug --framework net472 --output bin/Debug/net472/publish (dns block)
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/PSResourceGet/src/code/Microsoft.PowerShell.PSResourceGet.csproj --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot (dns block)
  • se1vsblobprodcus349.vsblob.vsassets.io
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/A5E8D0CA472852830AF16B02D1DD7226/missingpackages_workingdir --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)
  • sqdvsblobprodcus333.vsblob.vsassets.io
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/5A77BBF192406B03CF7D355D46F16504/missingpackages_workingdir --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)
  • st8vsblobprodcus339.vsblob.vsassets.io
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/940B32AFA3A9BBA00112E7C1E2D1C63E/missingpackages_workingdir --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)
  • tphvsblobprodcus375.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet /usr/bin/dotnet publish --configuration Debug --framework net472 --output bin/Debug/net472/publish (dns block)
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/PSResourceGet/src/code/Microsoft.PowerShell.PSResourceGet.csproj --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot (dns block)
  • u3hvsblobprodcus371.vsblob.vsassets.io
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/940B32AFA3A9BBA00112E7C1E2D1C63E/missingpackages_workingdir --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)
  • u6ovsblobprodcus377.vsblob.vsassets.io
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/A5E8D0CA472852830AF16B02D1DD7226/missingpackages_workingdir --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)
  • ukkvsblobprodcus352.vsblob.vsassets.io
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/940B32AFA3A9BBA00112E7C1E2D1C63E/missingpackages_workingdir --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)
  • uy6vsblobprodcus34.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet /usr/bin/dotnet publish --configuration Debug --framework net472 --output bin/Debug/net472/publish (dns block)
  • v53vsblobprodcus320.vsblob.vsassets.io
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/A5E8D0CA472852830AF16B02D1DD7226/missingpackages_workingdir --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)
  • www.powershellgallery.com
    • Triggering command: /usr/bin/pwsh pwsh -Command Import-Module Pester -MinimumVersion 5.0; Invoke-Pester test/PublishPSResourceTests/PublishPSResource.Tests.ps1 -Output Detailed (dns block)
  • yluvsblobprodcus367.vsblob.vsassets.io
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/940B32AFA3A9BBA00112E7C1E2D1C63E/missingpackages_workingdir --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)
  • yttvsblobprodcus357.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet /usr/bin/dotnet publish --configuration Debug --framework net472 --output bin/Debug/net472/publish (dns block)
  • ytvvsblobprodcus310.vsblob.vsassets.io
    • Triggering command: /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/.dotnet/dotnet restore --no-dependencies /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/A5E8D0CA472852830AF16B02D1DD7226/missingpackages_workingdir --packages /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/PSResourceGet/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

The member _networkCredential in PublishHelper class is not used, please remove it


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Remove unused networkCredential member in PublishHelper class Remove unused _networkCredential field and fix parameter shadowing in PublishHelper Nov 21, 2025
Copilot finished work on behalf of adityapatwardhan November 21, 2025 18:52
@adityapatwardhan adityapatwardhan marked this pull request as ready for review November 21, 2025 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants